import Vue from "vue";
import store from "@/store";
import App from "./App.vue";
import ItemDetail from "@/model/ItemDetail";
import ActionHelper from "@/store/ActionHelper";
import Category from "@/model/CateEnum";
import DataHelper from "@/store/DataHelper";

Vue.config.productionTip = false;

new Vue({
    render: (h) => h(App), store
}).$mount("#app");

// 测试ItemDetail
let item1 = new ItemDetail(2, Category.Study, "hey，ocean", "一起学习吧");
// console.log(item1);

// 测试DataHelper
// let dataHelper :DataHelper = new DataHelper('abc','id')
// console.log(dataHelper)
// dataHelper.addData(item1)
// let arrData = dataHelper.readData()
// console.log(arrData)

// 测试ActionHelper
// let actHelper: ActionHelper = new ActionHelper()
// console.log(actHelper.memoList)
// actHelper.add(item1)
// let arrData = actHelper.readData()
// console.log(arrData)
